package com.java.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.java.dao.OrderDao;
import com.java.model.Order;
import com.java.model.PageBean;
import com.java.service.OrderService;

@Service("orderService")
public class OrderServiceImpl implements OrderService{

	@Resource
	private OrderDao orderDao;
	
	@Override
	public List<Order> find(PageBean pageBean, Order s_order) {
		return orderDao.find(pageBean, s_order);
	}

	@Override
	public int count(Order s_order) {
		return orderDao.count(s_order);
	}

	@Override
	public void add(Order order) {
		orderDao.add(order);
	}

	@Override
	public void update(Order order) {
		orderDao.update(order);
	}

	@Override
	public void delete(int id) {
		orderDao.delete(id);
	}

	@Override
	public Order loadById(int id) {
		return orderDao.loadById(id);
	}

}
